﻿using Microsoft.EntityFrameworkCore.Metadata.Conventions;
using Microsoft.EntityFrameworkCore.Metadata.Conventions.Internal;
using System;
using System.Collections.Generic;
using System.Text;

namespace FwProject.EFCoreAttribut
{
  public  class FwCoreConventionSetBuilder: CoreConventionSetBuilder
    {
        public FwCoreConventionSetBuilder(CoreConventionSetBuilderDependencies dependencies) : base(dependencies) { }
        public override ConventionSet CreateConventionSet()
        {
            var conventionSet = base.CreateConventionSet();
        
            conventionSet.PropertyAddedConventions.Add(new DecimalPrecisionAttributeConvention());
            return conventionSet;
        }
    }
}
